package com.googlecode.rulio;

class MockActionActivator extends ActionActivator {
    public Action action;
    public Class actionClass;
    public Object[] dependencies;

    public MockActionActivator(Action action) {
        this.action = action;
    }

    @Override
    @SuppressWarnings("unchecked")
    public <T extends Action> T activate(Class<T> actionClass, Object... dependencies) throws Exception {
        this.actionClass = actionClass;
        this.dependencies = dependencies;
        return (T) action;
    }
}
